package com.xiao.seckil.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiao.group.common.utils.PageUtils;
import com.xiao.group.common.utils.Query;

import com.xiao.seckil.dao.SeckillActivityDao;
import com.xiao.seckil.entity.SeckillActivityEntity;
import com.xiao.seckil.service.SeckillActivityService;


@Service("seckillActivityService")
public class SeckillActivityServiceImpl extends ServiceImpl<SeckillActivityDao, SeckillActivityEntity> implements SeckillActivityService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SeckillActivityEntity> page = this.page(
                new Query<SeckillActivityEntity>().getPage(params),
                new QueryWrapper<SeckillActivityEntity>()
        );

        return new PageUtils(page);
    }

}